package com.cyh;

public class Cat {
    private String name = "招财猫";
    public int age = 10;

    public Cat(String name) {
        this.name = name;
    }

    private Cat(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Cat() {
    }

    public void hi() {
        System.out.println(name);
    }

    public String hi2(String s) {
       return s;
    }

    public void cry() {
        System.out.println("喵喵叫。。。");
    }
}
